class Admin::SettingsController < ApplicationController
  
  layout "admin"
  
  helper :button
  
  before_filter :login_required
  
  access_control :DEFAULT => 'admin | settings'
  
  def index
    @settings = Settings
  end

  def update
    Settings.title = params[:settings][:title]
    Settings.subtitle = params[:settings][:subtitle]
    Settings.app_email = params[:settings][:app_email]
    Settings.short_title = params[:settings][:short_title]
    Settings.vimeo_user = params[:settings][:vimeo_user]
    Settings.lolspeak = params[:settings][:lolspeak]
    flash[:notice] = "Settings have been saved."
    redirect_to :action => 'index'
  end
end
